#ifndef __GAMEDATA_H
#define __GAMEDATA_H

#include <string>
#include <map>

#include "parseXML.h"

using std::string;

class Gamedata
{
	public:
		static Gamedata& getInstance();

		void displayData() const;
		bool getXmlBool(const string&) const;
		const string& getXmlStr(const string&) const;

		float getXmlFloat(const string&) const;
		int getXmlInt(const string&) const;

	private:
		static Gamedata* instance;
		ParseXML parser;
		const map<string, string> gameData;

		Gamedata(const string& fn = "xmlSpec/game.xml");
		Gamedata(const Gamedata&);
		Gamedata& operator=(const Gamedata&);
};

#endif // !__GAMEDATA_H
